package com.ruoyi.web.controller.customer;

import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.CustomerChat;
import com.ruoyi.system.domain.SendChat;
import com.ruoyi.system.service.ICustomerChatService;
import com.ruoyi.system.service.ISendChatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/send/Chat")
public class SendChatController extends BaseController {

    @Autowired
    private ISendChatService sendChatService;

    @GetMapping("/list")
    @Anonymous
    public AjaxResult list(SendChat sendChat) {
        List<SendChat> list = sendChatService.selectSendChatList(sendChat);
        return success(list);
    }

}
